package cn.wawi.common.interceptor;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @description 返回前台的json数据
 * @author 龚亮
 * @date 2015-05-18 14:42:28
 */
@SuppressWarnings({"all"})
public class ResultData <M>{

	private String resMsg="请求成功!";         //是否请求成功
	private Integer resCode=1;     //1 请求成功 0请求失败
	private String method="";         //方法名
	private String methodDes="";      //接口描述
	//private Map<String,Object> resData=new HashMap<String,Object>();          //数据集合
    private Long total=0L;
    private List<M> rows=new ArrayList<M>();
	public ResultData(){
	}
	public ResultData(String method,String methodDes){
		this();
		this.method=method;
		this.methodDes=methodDes;
	}
	public String getResMsg() {
		return resMsg;
	}
	public void setResMsg(String resMsg) {
		this.resMsg = resMsg;
	}
	public String getMethod() {
		return method;
	}
	public void setMethod(String method) {
		this.method = method;
	}
	public String getMethodDes() {
		return methodDes;
	}
	public void setMethodDes(String methodDes) {
		this.methodDes = methodDes;
	}
	public Integer getResCode() {
		return resCode;
	}
	public void setResCode(Integer resCode) {
		this.resCode = resCode;
	}
	public Long getTotal() {
		return total;
	}
	public void setTotal(Long total) {
		this.total = total;
	}
	public List<M> getRows() {
		return rows;
	}
	public void setRows(List<M> rows) {
		this.rows = rows;
	}
}
